
<!--<ul class="breadcrumb"><li>首页</li>
	<li><a href="@">配置网站</a></li>
</ul>-->

<?php 
    use yii\widgets\Breadcrumbs;
    use yii\helpers\Url;
    use yii\helpers\Html;
?>

<?= 
Breadcrumbs::widget([
    'homeLink'=>['label'=>'首页'],
    'links'=>[
        ['label'=>'用户列表',
        'url'=>['index']],
        '添加用户',
    ]
])

?>


<div class="inner-container">
    
    <?=
    Html::beginForm('', 'post', ['enctype' => 'multipart/form-data',
        'class' => 'form-horizontal',
        'id' => 'addForm']);
    ?>
	<!--<form enctype="multipart/form-data" role="form" method="post" action="/mrsblog/backend/web/index.php?r=slideshow%2Fadd" class="form-horizontal" id="addForm">-->
        <!-- 用户名 -->
        <div class="form-group">
            <?= Html::label('名称＊：', 'username', ['class' => 'control-label col-sm-2 col-md-1']) ?>
            <div class="controls col-sm-10 col-md-11">
                <?= Html::activeInput('text', $model, 'username', ['class' => 'form-control input']) ?>
                <?= Html::error($model, 'username'); ?>
            </div>
        </div>
        
        <!-- 密码-->
        <div class="form-group">
            <?= Html::label('密码＊：', 'password', ['class' => 'control-label col-sm-2 col-md-1']) ?>
            <div class="controls col-sm-10 col-md-11">
                <?= Html::activeInput('password', $model, 'password', ['class' => 'form-control input']) ?>
                <?= Html::error($model, 'password'); ?>
            </div>
        </div>
        
         <!-- 状态-->
        <div class="form-group">
            <?= Html::label('状态＊：', 'status', ['class' => 'control-label col-sm-2 col-md-1']) ?>
            <div class="controls col-sm-10 col-md-11">
                <?= Html::activeDropDownList( $model, 'status', [1=>'开启',0=>'禁用'],['class' => 'form-control input']) ?>
                <?= Html::error($model, 'status'); ?>
            </div>
        </div>
        
         <div class="form-group">
             <div style="margin-top:10px" class="col-sm-10 col-sm-offset-2 col-md-11 col-md-offset-1">
                 <button class="btn btn-primary" type="submit">提交</button>
                 <a class="btn btn-primary" href="<?= Url::to(['index']); ?>">返回</a>
             </div>
         </div>
	<!--</form>-->
        <?= Html::endForm();?>
</div>
 
